package test.test.one.objects;

import test.test.one.TestActivity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;

/**
 * ob_inventory extends AbstractObject to create the area where picked items will be displayed
 * @author Gustavo
 *
 */
public class ob_inventory extends AbstractObject{
	
	/**
	 * Class constructor
	 * @param bitmap
	 * @param x
	 * @param y
	 */
	public ob_inventory(Bitmap bitmap, int x, int y){
		super(bitmap,x,y);
	}
	
	/**
	 * This method displays a colored rectangle where picked items will be shown
	 * @param canvas
	 */
	public void display(Canvas canvas){
		//Create new Paint
		Paint p=new Paint();
		
		//Set style
		p.setStyle(Style.FILL);
		
		//Set color
		p.setColor(Color.WHITE);
		
		//Draw Rect at position x1, y1, x2, y2, with created Paint
		canvas.drawRect(60,0,TestActivity.GAMEWIDTH-60,60, p);
	}
}
